API OCMS

Components

$component->title()				Displays the title of the component
$component->content()				Displays the content of the component

Pages

new Page($i_int_page_id)			Creates a new page and load the page information from the database

$obj_page->url()				Returns the URL of the current page
$obj_page->parameter($i_str_name)		Returns the value of the HTTP parameter (POST or GET)
$obj_page->securityLevel()			Returns the security level of the current page
$obj_page->id()					Returns the ID of the current page
$obj_page->title()				Returns the title of the current page
$obj_page->description()			Returns the description of the current page
$obj_page->components($i_str_zone_name)		Displays the components of the current page that are located on the given zone
$obj_page->parentID()				Returns the ID of the parent page
$obj_page->level()				Returns the level of the page (number of ancestor pages)
$obj_page->parent()				Returns the parent page (Page object)
$obj_page->children()				Returns all the children pages (Page objects in an array)

User

$_SESSION["s_obj_user"]->login()		Returns the login of the current user (empty string if user is not logged)
$_SESSION["s_obj_user"]->securityLevel()	Returns the security level of the current user
$_SESSION["s_obj_user"]->language()		Returns the langauage of the current user

image($i_int_image_id)				Returns the URL of the given image
thumbnail($i_int_image_id)			Returns the URL of the thumbnail of the given image
filename($i_int_file_id)			Returns the URL of the given file
page($i_int_page_id)				Returns the URL of the given page
